﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CardLogistics.Model.Purchase
{
    /// <summary>
    /// 采购需求表
    /// </summary>
    public class Purchase_Demand
    {
        public Purchase_Demand()
		{}
		#region Model
		private string _id;
		private string _billno;
		private string _demanddepartment;
        private string _demandstartdate;
        private string _demandenddate;
		private string _remarks;
		private string _lastupdateuser;
		private DateTime? _lastupdatedate;
		private decimal? _isdelete;
		private DateTime? _addtime;

        private string _CTypeName;//卡片类型
        private decimal? _CardNumber;//卡片数量
        private string _CardType; //卡片类型名称
        private string _Details;

       

		/// <summary>
		/// 采购需求编号
		/// </summary>
		public string ID
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 单据编号
		/// </summary>
		public string BILLNO
		{
			set{ _billno=value;}
			get{return _billno;}
		}
		/// <summary>
		/// 需求部门
		/// </summary>
		public string DEMANDDEPARTMENT
		{
			set{ _demanddepartment=value;}
			get{return _demanddepartment;}
		}
		/// <summary>
		/// 需求开始时间
		/// </summary>
        public string DEMANDSTARTDATE
		{
			set{ _demandstartdate=value;}
			get{return _demandstartdate;}
		}
		/// <summary>
		/// 需求结束时间
		/// </summary>
        public string DEMANDENDDATE
		{
			set{ _demandenddate=value;}
			get{return _demandenddate;}
		}
		/// <summary>
		/// 备注
		/// </summary>
		public string REMARKS
		{
			set{ _remarks=value;}
			get{return _remarks;}
		}
		/// <summary>
		/// 最后修改人
		/// </summary>
		public string LASTUPDATEUSER
		{
			set{ _lastupdateuser=value;}
			get{return _lastupdateuser;}
		}
		/// <summary>
		/// 最后修改时间
		/// </summary>
		public DateTime? LASTUPDATEDATE
		{
			set{ _lastupdatedate=value;}
			get{return _lastupdatedate;}
		}
		/// <summary>
		/// 0 未删除 1 已删除
		/// </summary>
		public decimal? ISDELETE
		{
			set{ _isdelete=value;}
			get{return _isdelete;}
		}
		/// <summary>
		/// 添加时间
		/// </summary>
		public DateTime? ADDTIME
		{
			set{ _addtime=value;}
			get{return _addtime;}
		}
        /// <summary>
        /// 类型详细信息 格式如：类型1ID,数量1|类型2ID,数量2
        /// </summary>
        public string Details
        {
            get { return _Details; }
            set { _Details = value; }
        }
        /// <summary>
        /// 0 未提交 1 待审核 2 审核中 3 驳回 4 审核不通过 5审核通过
        /// </summary>
        public int IsSubmit
        {
            get;
            set;
        }

          #region 添加便于查询的字段
        /// <summary>
        /// 卡片类型
        /// </summary>
        public string CTypeName
        {
            get { return _CTypeName; }
            set { _CTypeName = value; }
        }

        /// <summary>
        /// 卡片数量
        /// </summary>
        public decimal? CardNumber
        {
            get { return _CardNumber; }
            set { _CardNumber = value; }
        }
          
        /// <summary>
        /// 卡片类型名称
        /// </summary>
        public string CardType
        {
            get { return _CardType; }
            set { _CardType = value; }
        }
        
        #endregion
        
		#endregion Model
    }
}
